package com.cyclasoft.projects.ledom.dataload;

import java.util.HashMap;
import java.util.List;

import com.cyclasoft.commons.collections.Pair;
import com.cyclasoft.projects.ledom.core.DataLoaderParam;
import com.cyclasoft.projects.ledom.core.IDataLoader;

public class MapDataLoader implements IDataLoader
{

	@Override
	public Object load(DataLoaderParam param)
	{
		HashMap<String, Object> map = new HashMap<String, Object>();
		for(Pair<String, Object> p : param.getParams())
		{
			map.put(p.getLeft(), p.getRight());
		}
		return map;
	}

}
